﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using News;
using MinhTuan;
public partial class news_newdetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["Id"] != null)
            {
                BindData();
                Access.UpdatePage(Page.Header);
            }
            
        }
    }
    protected void BindData()
    {
        NewsItem inews = NewsItem.GetItemDetails(Request.QueryString["Id"].ToString(), "VN");
        ltcatalog.Text = inews.CatalogName;
        ltName.Text = inews.Name;
        ltPostdate.Text = inews.PostDate.ToString();
        ltSummary.Text = inews.Summary;
        images.ImageUrl = inews.Image;
        ltdetail.Text = inews.Details;
        ltauthor.Text = inews.Author;
        NewsItem.GetRelativeItems(litsRelative, inews.CatalogId, inews.Id, "VN");
        
    }
    
}
